package com.xb.cloud.gateway.common.constant;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MnsConfig {

	private static final Logger logger = LoggerFactory.getLogger(MnsConfig.class);
	
	@Value("${sms_username}")
	public    void setMnsUsername(String username) {
		MnsConfig.username = username;
	}
	 
	@Value("${sms_pwd}")
	public   void setPwd(String pwd) {
		MnsConfig. pwd = pwd;
	}
	@Value("${sms_template}")
	public  void setTemplate(String template) {
		MnsConfig.template = template;
		logger.info("设置短信模板："+template);
	}
	
	@Value("${sms_sign}")
	public  void setSign(String sign) {
		MnsConfig.sign = sign;
		logger.info("设置短信签名："+sign);
	}


	//短信服务的KEYID
	public static   String username = "xx";
	public static String pwd="54564166";
	public static String template = "中合国创提示您，验证码：@ 请勿将验证码泄露给其他人，如非本人操作请忽略。";
	public static String sign = "【中合国创】";
 
}
